package 自定义泛型类;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        //测试自定义泛型类的泛型参数
        OrderTest<Integer> o1 = new OrderTest<>();
        o1.orderT = 113;
        System.out.println(o1.getOrderT());
        System.out.println("-----------------------");

        //测试自定义泛型类全参构造方法
        OrderTest<String> o2 = new OrderTest<>("xc", 21, "lmf:656");
        System.out.println(o2.getOrderT());
        System.out.println("-----------------------");

        //测试泛型方法
        OrderTest<String> o3 = new OrderTest<>();
        //Integer[] arr1=new Integer[]{1,2,3,4,5};
        String[] arr1 = new String[]{"d", "f", "g"};
        List<String> list = OrderTest.copyToArrayList(arr1);
        System.out.println(list);

    }
}
